﻿using System.Configuration;

namespace CID.Execution.Support.TemplateHandling.Configuration
{
    public class TemplateHandlingSection : ConfigurationSection
    {
        public const string SectionName = "templateHandling";
        private const string HandlersElement = "handlers";

        [ConfigurationProperty(HandlersElement, IsDefaultCollection = false)]
        [ConfigurationCollection(typeof(TemplateHandlerElementCollection), AddItemName = "add", ClearItemsName = "clear", RemoveItemName = "remove")]
        public TemplateHandlerElementCollection Handlers
        {
            get { return (TemplateHandlerElementCollection)this[HandlersElement]; }
        }
    }
}
